// 定义用户的数据类型 用interface 或 type定义

// 对应后端user.java的User类
export type User = {
  userId: number;
  account?: string;
  password?: string;
  nickname?: string;
  avatar?: string;
  phoneNum?: string;
  sex?: number;
  status?: number;
  createAt?: string;
  updateAt?: string;
  level?: number;
};

// 定义列表查询参数
// 对应后端userparm.java的参数
export type UserListParams = {
  currentPage: number;
  pageSize: number;
  nickname: string;
  total?: number;
};
